package com.test.practice.java8.lambda.predicate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: =======================
 * @Author: Jovi
 * =======================
 * @Date: Created in 2023-01-28
 * =======================
 * @Version: 1.1.2.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {

    private int id;
    private String name;
    private Integer age;
    private double salary;

    private Status status;

    public Employee(int id, String name, Integer age, double salary) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Employee(int id) {
        this.id = id;
    }

    public Employee(String name) {
        this.name = name;
    }

    public enum Status{
        FREE,
        BUSY,
        VOCATION;
    }
}
